package com.bebal.cashloan.service.impl;

import com.bebal.cashloan.dao.DemoDao;
import com.bebal.cashloan.entity.DemoEntity;
import com.bebal.cashloan.service.ModelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by chenhui on 2018/7/2.
 */
@Service("modelService")
public class ModelServiceImpl implements ModelService {

    @Resource
    private DemoDao demoDao;

    @Override
    public List<DemoEntity> queryAll() {
        return demoDao.selectAll();
    }

    @Override
    public int count() {
        return demoDao.selectAll().size();
    }
}
